package com.model;

import javax.servlet.http.*;

import com.model.HttpAttribute;

public class RequestAttribute {
    private RequestAttribute() {}

    public static String getConName(HttpServletRequest req) {
        return (String) req.getAttribute(HttpAttribute.CONNAME);
    }

    public static void setConName(HttpServletRequest req, String flag) {
        req.setAttribute(HttpAttribute.CONNAME, flag);
    }
    
    public static String getConMeans(HttpServletRequest req){
    	return (String) req.getAttribute(HttpAttribute.CONMEANS);
    }
    
    public static void setConMeans(HttpServletRequest req, String flag){
    	req.setAttribute(HttpAttribute.CONMEANS,flag);
    }
    
    public static String getDescription(HttpServletRequest req){
    	return (String) req.getAttribute(HttpAttribute.DESCRIPTION);
    }
    
    public static void setDescription(HttpServletRequest req,String flag){
    	req.setAttribute(HttpAttribute.DESCRIPTION,flag);
    }
    
    public static String getDate(HttpServletRequest req){
    	return (String) req.getAttribute(HttpAttribute.DATE);
    }
    
    public static void setDate(HttpServletRequest req,String flag){
    	req.setAttribute(HttpAttribute.DATE,flag);
    }
    public static boolean getResult(HttpServletRequest req){
    	return (boolean) req.getAttribute(HttpAttribute.BOOKRESULT);
    }
    public static void setResult(HttpServletRequest req,boolean b){
    	req.setAttribute(HttpAttribute.BOOKRESULT,b);
    }
}